home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 5 (Internal Edition)
/
Apple R&P Lib Internal v5.0.iso
/
3-Presentations
/
Markets
/
Education
/
HyperCard In Education
/
Math Quizzer
/
card_4025.txt
< prev
next >
Wrap
Text File
|
1990-04-02
|
7KB
|
364 lines
-- card: 4025 from stack: in
-- bmap block id: 4226
-- flags: 0000
-- background id: 2658
-- name:
----- HyperTalk script -----
on openCard
hide card field 7
hide card field 9
hide card field 10
put 0 into card field 9
put 0 into card field 10
put 0 into card field 2
put 0 into card field 3
put " " into card field 4
repeat with x=11 to 13
hide card field x
end repeat
hide card field 6
hide card field 8
end openCard
-- part 1 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=14 top=22 right=41 bottom=135
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 2 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=136 top=172 right=187 bottom=176
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 3 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=209 top=171 right=186 bottom=255
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 4 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=297 top=172 right=188 bottom=349
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 5 (field)
-- low flags: 80
-- high flags: 0004
-- rect: left=297 top=116 right=167 bottom=352
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 6 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=295 top=252 right=300 bottom=394
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 7 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=16 top=46 right=101 bottom=125
-- title width / last selected line: 0
-- icon id / first selected line: 31685 / 31685
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Push to Get Numbers
----- HyperTalk script -----
on mouseUp
hide card field 11
hide card field 12
hide card field 13
put " " into card field 4
hide card field 8
hide card field 7
hide card field 6
hide card field 9
hide card field 10
put the random of 9 into x
put the random of 10 into y
put the random of 10 into z
put x*100 into nex
put (y-1)*10 into ney
put z-1 into nez
put nex+ney+nez into card field 2
put the random of 9 into x
put the random of 10 into y
put the random of 10 into z
put x*100 into net
put (y-1)*10 into nes
put z-1 into ner
if net+nes+ner>nex+ney+nez
then put nex+ney+nez into card field 3
if net+nes+ner>nex+ney+nez
then put net+ner+nes into card field 2
if net+nes+ner<nex+ney+nez
then put nex+ney+nez into card field 2
if net+nes+ner<nex+ney+nez
then put net+ner+nes into card field 3
show card field 5
show card button id 8
end mouseUp
-- part 8 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=273 top=202 right=227 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Push When Ready
----- HyperTalk script -----
on mouseUp
put card field 10+1 into card field 10
hide card button id 8
hide card field 5
put card field two into numb1
put card field three into numb2
put card field four into numb3
if the abs of (numb1-numb2)=numb3
then show card field 6
else show card field 7
if the abs of (numb1-numb2)=numb3
then put card field 9+1 into card field 9
put the abs of (numb1 - numb2) into card field 8
show card field 8
show card field 9
show card field 10
show card field 11
show card field 12
show card field 13
end mouseUp
-- part 9 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=295 top=202 right=233 bottom=420
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 10 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=296 top=234 right=252 bottom=329
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 11 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=196 top=316 right=332 bottom=219
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 12 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=267 top=316 right=333 bottom=291
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 13 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=220 top=316 right=333 bottom=267
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 14 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=88 top=316 right=333 bottom=196
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 15 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=291 top=316 right=332 bottom=468
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 16 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=18 top=266 right=315 bottom=83
-- title width / last selected line: 0
-- icon id / first selected line: 2162 / 2162
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseUp
go to card 1
end mouseUp
-- part contents for card part 1
----- text -----
Subtraction Card
-- part contents for card part 5
----- text -----
Put answer below
-- part contents for card part 4
----- text -----
-- part contents for card part 2
----- text -----
0
-- part contents for card part 3
----- text -----
0
-- part contents for card part 10
----- text -----
223
-- part contents for card part 11
----- text -----
0
-- part contents for card part 6
----- text -----
was the right answer. Good job!
-- part contents for card part 12
----- text -----
0
-- part contents for card part 9
----- text -----
Wrong! The correct answer was
-- part contents for card part 14
----- text -----
You have gotten
-- part contents for card part 13
----- text -----
out of
-- part contents for card part 15
----- text -----
subtraction problems right..